<?php
/**
* @package djtpl
* @author J.Ducastel <jeremie@ducastel.name>
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*/

/**
* templates storage for kits
* @uses djtplTemplate
*/
class djtplStorage extends wakStorage {
/*--------------------------------------------------------------------
 STATIC METHODS
--------------------------------------------------------------------*/
	function & factory($kit,$name) {
		return new djtplStorage($kit,$name);
	}
/*--------------------------------------------------------------------
PUBLIC INSTANCE METHODS
--------------------------------------------------------------------*/
	/**
	* 
	* @param
	* @access public
	* @return 
	* /
	function () {
		
	}/**/
/*--------------------------------------------------------------------
VARS / MEMBERS
--------------------------------------------------------------------*/
	/**
	* @var type desc
	*/
	//var $stored_class='djtpltemplate';
	/**
	 * @var string default search template
	 * 
	 */
	var $search='templates{/{lang}}/{{id}}.djtpl.html';
	
	/**
	 * @var array default criteria values
	 */
	var $criteria=array(
		//'lang'=>'en'
	);
/*--------------------------------------------------------------------
PRIVATE / PROTECTED METHODS
--------------------------------------------------------------------*/
	/**
	* item factory method
	* @param string $file
	* @access protected
	* @return djtplTemplate
	*/
	function & _itemFactory($file) {
		$str=join('',file($file));
		return new djtplTemplate($str);
	}/**/
	
	/**
	*
	* @param
	* @access protected
	* @return
	* /
	function () {

	}/**/
}
?>